﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace TinyMoocSite.Models
{
    public class CourseInfo
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        public string Title { get; set; }

        public DateTime StartDate { get; set; }

        public DateTime EndDate { get; set; }

        public string Description { get; set; }

        public string Prerequisites { get; set; }

        public string Textbook { get; set; }

        public string ScoringRule { get; set; }

        public List<UserInfo> FollowedUserList { get; set; }

        public List<Resource> ResourceList { get; set; }

        public List<AttachedPage> AttachedPageList { get; set; }

        public AttachedPage DefaultAttachedPage { get; set; }

        public List<Homework> HomeworkList { get; set; }

        public List<Discuss> DiscussList { get; set; }
    }
}